<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
           %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
           %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
           %><%@ taglib tagdir="/WEB-INF/tags" prefix="cohesion"
           %><%@ page contentType="text/html;charset=ISO-8859-1"
           %><html:html>
    <head>
        <title><bean:message key="VUsuarios.title"/></title>
        <html:base/>

        <link rel="stylesheet" type="text/css" href="../css/rightMenu.css"/>
        <%@include file="../header/include.jsp" %>
    </head>
    <div class="ui-widget-header ui-corner-all" style="text-align: center;  ">
        <h1><bean:message key="all.menuDerecha"/></h1>
    </div>

    <div  class="ui-widget-content ui-widget">
        <div id="login" class="rightMenu" style="margin-top: 30px;">
            <%@page import="ve.usb.crm.*;
                    import ve.usb.crm.hibernate.*" %>
            <%
                        if (CohesionActor.checkActor(request, CohesionActor.ACTOR_administrador + CohesionActor.ACTOR_empleado)) {
                            Personal usuario = (Personal) request.getSession().getAttribute("Usuario");

            %>

            <ul class="menuUserContainer ui-widget-content">
                <li class="menuUserLink ui-state-active">Usuario: <%= usuario.getPersonalUsuario().getAlias()%> </li>
                <li><html:link action="/APreProfile.do" styleClass="menuUserLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-person"></span>Perfil</html:link></li>
                <li><html:link action="/ADesconectarse.do" styleClass="menuUserLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-power"></span>Desconectarse</html:link></li>
            </ul>

            <%
                                } else if (CohesionActor.checkActor(request, CohesionActor.ACTOR_cliente)) {
                                    Contacto usuario = (Contacto) request.getSession().getAttribute("Usuario");
            %>
            <ul class="menuUserContainer ui-widget-content">
                <li class="menuUserLink ui-state-active">Usuario: <%= usuario.getContactoUsuario().getAlias()%> </li>
                <li><html:link action="/APreProfile.do" styleClass="menuUserLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-person"></span>Perfil</html:link></li>
                <li><html:link action="/ADesconectarse.do" styleClass="menuUserLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-power"></span>Desconectarse</html:link></li>
            </ul>



            <%} else {%>

            <ul>
                <li><html:link action="/APreConectarse.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-transferthick-e-w"></span>Conectarse</html:link></li>
                <li><html:link action="/APreRegistrarCliente.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-check"></span>Registrarse</html:link></li>
            </ul>



            <%}
            %>


            <ul id="nav">

                <cohesion:actor actors="13"><li><html:link action="/APreHome.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-home"></span>Inicio</html:link></li></cohesion:actor>
                <cohesion:actor actors="1"><li><html:link action="/APreAdministrar.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-wrench"></span>Administrar</html:link></li></cohesion:actor>
                <cohesion:actor actors="1"><li><html:link action="/APreUsuarios.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-person"></span>Usuarios</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreOportunidades.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-folder-collapsed"></span>Oportunidades</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreProyectos.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-folder-open"></span>Proyectos</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreCuentas.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-suitcase"></span>Cuentas</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreContactos.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-contact"></span>Contactos</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreClientes.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-bookmark"></span>Clientes</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreTareas.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-document"></span>Tareas</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreCatalogos.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-cart"></span>Cat&aacute;logos</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreFacturas.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-mail-open"></span>Facturas</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APreSoportesTecnico.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-info"></span>Soporte T&eacute;cnico</html:link></li></cohesion:actor>
                <cohesion:actor actors="5"><li><html:link action="/APrePapelera.do" styleClass="menuLink menu-button-mini menu-button ui-state-default menu-button-icon-left"><span class="ui-icon ui-icon-trash"></span>Papelera</html:link></li></cohesion:actor>
            </ul>

        </div>



    </div>
</html:html>